<script language="php">
session_start();

if (!isset($_SESSION['userlogin'])) 
{
	header("Location:index.php");
}
require('Formatting.php');
</script>
<link rel="stylesheet" type="text/css" href="BuildAndControlStyling.css">
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>

<script>//data validation  http://docs.jquery.com/Plugins/Validation/Methods#Options_for_the_validate.28.29_method
$(document).ready(function()
{
    $("#inputForm").validate(
    	{
    	rules: 
    		{
    		row: 	{required:true, max:100 },
    		column: {required:true, max:100}
  			}
		});
});
</script>

<title>
	Build Land
</title>

<html>
<body class=<?php teamSchemeHome();?>>

<script language="php">
	Heading();
</script>
<h1>Build Requests</h1>

<iframe class="architect" 
src="https://www.google.com/fusiontables/embedviz?viz=MAP&q=select+col1%3E%3E1+from+3655178+&h=false&lat=-26.19418654108016&lng=28.030284405899124&z=14&t=1&l=col1%3E%3E1">
</iframe>

<form id="inputForm" class="architectRequest" action="buildQuery.php" method="post" >
	<label class="inputcoord" for="row">Row:&nbsp</label>
	<input id="row" type="text" name="row" class="gridcoord" minLength="1" maxlength="3">

	<label class="inputcoord" for="column">Column:&nbsp</label>
	<input id="column" type="text" name="column" class="gridcoord" minLength="1" maxlength="3"><br/><br/>
	
	<input type="Submit" value="Attempt Build">
</form>

<script language="php">
LinksBot();
</script>

</body>
</html>